package com.ideal.frame.institutions.controller;

import com.ideal.frame.common.dto.ResponseModel;
import com.ideal.frame.institutions.dto.InstitutionsOrganizationDto;
import com.ideal.frame.institutions.dto.InstitutionsServindustryDto;
import com.ideal.frame.institutions.dto.OrganizationInfoDto;
import com.ideal.frame.institutions.entity.InstitutionsOrganizationTb;
import com.ideal.frame.institutions.service.InstitutionsOrganizationService;
import com.ideal.frame.institutions.service.InstitutionsServindustryService;
import com.ideal.frame.sys.form.search.OrganizationSearchForm;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/institutions/servindustry")
@Api("服务行业")
public class InstitutionsServindustryController {

    @Autowired
    private InstitutionsServindustryService servindustryService;

    @ApiOperation(value = "查询服务行业", httpMethod = "GET", produces = "application/json", response = ResponseModel.class)
    @GetMapping("getByGnrlid")
    public ResponseModel<InstitutionsServindustryDto> getByGnrlid(@RequestParam("gnrlid") String gnrlid) {
        return ResponseModel.success(servindustryService.getByGnrlid(gnrlid));
    }
}
